home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWFiles / FWFilRep.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.5 KB  |  60 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWFilRep.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWFILREP_H
  11. #define FWFILREP_H
  12.  
  13. #ifndef FWEXCDEF_H
  14. #include "FWExcDef.h"
  15. #endif
  16.  
  17. #ifndef FWFILE_H
  18. #include "FWFileSy.h"
  19. #endif
  20.  
  21. #ifndef FWFILESP_H
  22. #include "FWFileSp.h"
  23. #endif
  24.  
  25. #include "SLFilRep.xh"
  26.  
  27. //========================================================================================
  28. //    FW_PFile
  29. //
  30. //    Class holding representation for FW_OFile.  This is an implementation class 
  31. //    and should not be used in general.  Use the FW_CFileSink class instead.
  32. //========================================================================================
  33.  
  34.  
  35.  
  36. //========================================================================================
  37. // CLASS FW_PFile
  38. //========================================================================================
  39.  
  40. class FW_PFile : public FW_TCountedSOMPtr<FW_OFile>
  41. {
  42. public:
  43.     virtual ~FW_PFile();
  44.  
  45.     FW_PFile(Environment* ev, FW_OFile* privFileAccessRep);
  46.         
  47.     FW_PFile(Environment* ev, 
  48.              FW_OFileSpecification* fileSpecification,
  49.              FW_Boolean allowCreate = FALSE);
  50.         // Open with exclusive access 
  51.  
  52.     FW_PFile(Environment* ev, 
  53.              FW_OFileSpecification* fileSpecification,
  54.              const FW_SAccessPermission& permission,
  55.              FW_Boolean allowCreate = FALSE);
  56.         // Open with specified permissions.
  57. };
  58.         
  59. #endif
  60.